package edu.sctu.practice.class01.huangtianlin.text2;

/**
 * Created by Administrator on 2015/10/14.
 */
public class Vehicle {

    int speed;
    int size;

    public void  move(){

        System.out.println("move star");

    }


    public void  setSpeed(int speed){

        this.speed = speed;
        System.out.println("设置速度为"+"set speed:"+speed);
    }

    public void speedUp(){

        speed = speed +5;

        System.out.println("加速后："+speed);

    }

    public void speedDown(){

        speed = speed -5;

        System.out.println("减速后"+speed);

    }

}

